<?php
@require_once("config.php");
$usertel=$_GET["usertel"];
$str="select n.smallimg,s.goodsid,s.price,s.goodscolor,s.dingzhi,s.num,s.goodsname from shoppinginfo s,newinfo n where s.usertel=$usertel and s.goodsid=n.id";
$result=mysql_query($str);
$list=array();
while($item=mysql_fetch_array($result)){
    $temp=array();
    $temp["goodscolor"]=$item["goodscolor"];
    $temp["price"]=$item["price"];
    $temp["dingzhi"]=$item["dingzhi"];
    $temp["num"]=$item["num"];
    $temp["goodsname"]=$item["goodsname"];
    $temp["smallimg"]=$item["smallimg"];
    $temp["goodsid"]=$item["goodsid"];
    $list[]=$temp;
}
echo json_encode($list);


?>